package ${package}<#if moduleName != "">.${moduleName}<#else></#if>.entity;

import java.time.*;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import lombok.*;

/**
* 权限
* @TableName ${tableName}
*/
@TableName(value ="${tableName}")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ${className} implements Serializable {

<#list columns as column>
    /**
    * ${column.comment}
    */
    <#if column.columnName == pk.columnName>
        @TableId(value = "${column.attrName}"<#if pk.type == "auto_increment">, type = IdType.AUTO</#if>)
    <#else >
        @TableField(value = "${column.columnName}")
    </#if>
    private ${column.attrType} ${column.attrName};
</#list>

@TableField(exist = false)
private static final long serialVersionUID = 1L;
}